package com.example.model.vo;

import com.example.model.ums.UmsMenu;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * 菜单表VO
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UmsMenuVo {

    /** ID */
    private String id;

    /** 父级ID */
    private String parentId;

    /** 菜单编码 */
    private String menuCode;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /** 菜单名称 */
    private String menuName;

    /** 前端地址 */
    private String name;

    /** 前端地址 */
    private String url;

    /** 前端图标 */
    private String icon;

    @JsonInclude(JsonInclude.Include.NON_NULL) // 属性值为空的不进行序列化
    List<UmsMenu> menus = new ArrayList<>();

    private String adminId;

    private String roleId;

    private Integer page;
    private Integer rows;

}
